package bluejTp1Project;

/***********************************************************************
 * Concierge de la Salle de Sport qui va calculer les recettes annuelles
 * de la salle
 * @author (Camille Gaignard, Boubacar Roger THIAM)
 ***********************************************************************/
public class Concierge 
{
    // instance variables - replace the example below with your own
    private int depensesSalleDeSport;
    private SalleDeSport salleDeSport;
 
    /**
     * Constructor for objects of class Concierge
     */
    public Concierge()
    {
       depensesSalleDeSport = 0;
      // budgetAnnuel = 0;
    }
    //Accesseurs de l'attribut nbrAdherent
    public int getDepensesSalleDeSport()
    {
        return depensesSalleDeSport;
    }        
    public void setDepensesSalleDeSport(int depensesSalleDeSport)
    {
        this.depensesSalleDeSport = depensesSalleDeSport;
    }
   
    
    //Accesseurs de l'attribut salleDeSport
    
    public SalleDeSport getSalleDeSport()
    {
        return salleDeSport;
    }        
    public void setSalleDeSport(SalleDeSport salleDeSport)
    {
        this.salleDeSport = salleDeSport;
    }

    public int recettesAnnuellesSalleDeSport()
    {
       int recettesAnnuelles = 0;
       int budgetAnnuel = 0;
       budgetAnnuel = salleDeSport.gainAnnuel();
       recettesAnnuelles = budgetAnnuel - depensesSalleDeSport;
       return recettesAnnuelles;
    }
}
